<include file="public@header"/>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Message/info')}">消息列表</a></li>
        <li class="active"><a href="javascript:;">消息详情</a></li>
    </ul>
    <form action="javascript:;" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row col-lg-12 center-block">
            <table class="table table-bordered">
                <tr>
                    <th class="active">主&nbsp;题</th>
                    <td>{$message.subject|default=''}</td>
                </tr>
                <tr>
                    <th class="active">发布时间</th>
                    <td>{:date('Y年m月d日 H:i',$message.create_time)}</td>
                </tr>
                <tr>
                    <th class="active">内&nbsp;容</th>
                    <td>{$message.content|default=''}</td>
                </tr>
            </table>
        </div>

    </form>
</div>

<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //同步消息
    var msgId = '{$message.id}';
    var total = $(window.parent.document).find("#msg_show_total");
    var subTotal = $(window.parent.document).find("#msg_sub_total");
    var msg = $(window.parent.document).find("#msgId_" + msgId);

    if(msg.length > 0){
        var newCount = parseInt(total.text()) - 1;
        total.text(newCount);
        subTotal.text(newCount);
        msg.remove();
    }

</script>
</body>
